/**
 * 
 */
package com.edocbase.diary.job.ui;

import com.edocbase.diary.job.IJobWorker;

/**
 * @author X61
 *
 */
public class JobDetail {
	private IJobWorker jobWorker = null;
	private int total = 0;
	private int worked = 0;
	private String state ="";
	private String text = null;
	private int id = 0;
	public JobDetail(int index,IJobWorker jobWorker) {
		super();
		this.jobWorker = jobWorker;
		this.text  = jobWorker.getText();
		this.id = index;
	}
	
	public JobDetail(String text, int total, int worked) {
		super();
		this.text = text;
		this.total = total;
		this.worked = worked;
	}

	public JobDetail() {
		super();
	}

	public IJobWorker getJobWorker() {
		return jobWorker;
	}
	public void setJobWorker(IJobWorker jobWorker) {
		this.jobWorker = jobWorker;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getWorked() {
		return worked;
	}
	public void setWorked(int worked) {
		this.worked = worked;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
}
